﻿#pragma once

#include "Protocol.h"

typedef struct RivalWindow RivalWindow;

typedef void(*RivalWindowDelete)(RivalWindow*);
typedef void(*RivalWindowSetUsernameList)(RivalWindow*, TCHAR(*)[USERNAME_BUF_LEN]);

// 对手列表窗口
struct RivalWindow {
    HWND mHandle;       // 窗口句柄
    HWND mListViewUsers; // 用户列表控件句柄

    RivalWindowDelete deleteSelf;
    RivalWindowSetUsernameList setUsernameList;
};

RivalWindow* New_RivalWindow(HWND);
